from django.conf.urls.defaults import *
from example.views import home, play, read, write
from os import path

static_path = path.dirname(path.abspath(__file__))+'/../static/'

urlpatterns = patterns('',
    url(r'^$', home),
    url(r'^play/(?P<id>[0-3])/$', play),
    url(r'^write/(?P<id>[0-3])/$', write, name='write'),
    url(r'^read/(?P<id>[0-3])/$', read, name='read'),
    url(r'^static/(?P<path>.*)$',
        'django.views.static.serve', {'document_root': static_path}),
)
